/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.quickbi_public.model.v20220101;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.quickbi_public.transform.v20220101.BatchAddFeishuUsersResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
 * @author auto create
 * @version 
 */
public class BatchAddFeishuUsersResponse extends AcsResponse {

	private String requestId;

	private Boolean success;

	private Result result;

	public String getRequestId() {
		return this.requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public Boolean getSuccess() {
		return this.success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public Result getResult() {
		return this.result;
	}

	public void setResult(Result result) {
		this.result = result;
	}

	public static class Result {

		private Integer failCount;

		private Integer okCount;

		private List<FailResultsItem> failResults;

		public Integer getFailCount() {
			return this.failCount;
		}

		public void setFailCount(Integer failCount) {
			this.failCount = failCount;
		}

		public Integer getOkCount() {
			return this.okCount;
		}

		public void setOkCount(Integer okCount) {
			this.okCount = okCount;
		}

		public List<FailResultsItem> getFailResults() {
			return this.failResults;
		}

		public void setFailResults(List<FailResultsItem> failResults) {
			this.failResults = failResults;
		}

		public static class FailResultsItem {

			private List<FailInfosItem> failInfos;

			public List<FailInfosItem> getFailInfos() {
				return this.failInfos;
			}

			public void setFailInfos(List<FailInfosItem> failInfos) {
				this.failInfos = failInfos;
			}

			public static class FailInfosItem {

				private String code;

				private String codeDesc;

				private String input;

				public String getCode() {
					return this.code;
				}

				public void setCode(String code) {
					this.code = code;
				}

				public String getCodeDesc() {
					return this.codeDesc;
				}

				public void setCodeDesc(String codeDesc) {
					this.codeDesc = codeDesc;
				}

				public String getInput() {
					return this.input;
				}

				public void setInput(String input) {
					this.input = input;
				}
			}
		}
	}

	@Override
	public BatchAddFeishuUsersResponse getInstance(UnmarshallerContext context) {
		return	BatchAddFeishuUsersResponseUnmarshaller.unmarshall(this, context);
	}

	@Override
	public boolean checkShowJsonItemName() {
		return false;
	}
}
